package com.xxxx.api.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author nathan-wang on 2020-11-06
 */
public class CartResult implements Serializable {
    //购物车列表
    private List<Cart> cartList;
    //购物车总金额
    private BigDecimal totalPrice;

    public CartResult() {
    }

    public CartResult(List<Cart> cartList, BigDecimal totalPrice) {
        this.cartList = cartList;
        this.totalPrice = totalPrice;
    }

    public List<Cart> getCartList() {
        return cartList;
    }

    public void setCartList(List<Cart> cartList) {
        this.cartList = cartList;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "CartResult{" +
                "cartList=" + cartList +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
